add_library(mqttclient STATIC mqttClient.cpp mqttMessageHandler.cpp)
target_include_directories(mqttclient PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/.. )

if(LINUX_X86_64 OR RK3308_ARM64)
    target_link_libraries(mqttclient PRIVATE pthread)
endif()

target_link_libraries(mqttclient PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/${LIBDIR}/lib/libpaho-mqtt3a.a)
target_link_libraries(mqttclient PRIVATE qlibc)



